package com.leadbank.stormstudy.trident;

import org.apache.storm.utils.DRPCClient;
import org.apache.storm.utils.Utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hp on 2018/10/17.
 */
public class TridentWordCountTest {

    public static void main(String[] args) {

        try {
            Map config = Utils.readStormConfig();
            DRPCClient client = new DRPCClient(config, "10.1.1.227", 3772);
            System.out.println(client.execute("words", "cat dog the man"));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
